package com.edu.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class UpdatePwdDTO {
    @NotBlank(message = "用户名或手机号或邮箱不能为空")
    private String account;
    @NotBlank(message = "修改密码不能为空")
    @Length(min = 6,max = 12,message = "密码长度为{min}-{max}位")
    private String password;

    @NotBlank(message = "确认密码不能为空")
    @Length(min = 6, max = 12, message = "密码长度应为6-12位")
    private String confirmpassword;
}
